
<form action="<?php echo BASEURL;?>index.php" method="post"
	onsubmit="MyForm.validate(this);">
	<input type="hidden" name="page" value="account"> <input type="hidden"
		name="id" value="<?php echo $this->session->userdata('client_id');?>">
	<table>

		<tr>
			<th colspan="3">Account Information</th>
		</tr>
		<?php if(isset($successMessage)){?>
		<tr>
			<th colspan="3" style="color: blue"><?php echo $successMessage;?></th>
		</tr>
		<?php }?>
		<tr>
			<td>Username</td>
			<td>:</td>
			<td><input type="text" name="username" id="username*" alt="User Name"
				value='<?php echo (!isset($user))?"":$user->username; ?>'></td>
		</tr>
		<tr>
			<td>Password</td>
			<td>:</td>
			<td><input type="text" name="password" id="password*" alt="Password"
				value='<?php echo (!isset($user))?"":$user->password; ?>'></td>
		</tr>
		<tr>
			<td>Email</td>
			<td>:</td>
			<td><input type="text" name="email" id="email@" alt="Email"
				value='<?php echo (!isset($user))?"":$user->email; ?>'></td>
		</tr>
		<tr>
			<th colspan="3">&nbsp;</th>
		</tr>
		<tr>
			<td>First Name</td>
			<td>:</td>
			<td><input type="text" name="firstname" id="firstname*"
				value='<?php echo (!isset($user))?"":$user->firstname; ?>'></td>
		</tr>
		<tr>
			<td>Last Name</td>
			<td>:</td>
			<td><input type="text" name="lastname" id="lastname*" alt="Last Name"
				value='<?php echo (!isset($user))?"":$user->lastname; ?>'></td>
		</tr>
		<tr>
			<td>Middle Name</td>
			<td>:</td>
			<td><input type="text" name="middlename" id="middlename*"
				alt="Middle Name"
				value='<?php echo (!isset($user))?"":$user->middlename; ?>'></td>
		</tr>
		<tr>
			<td>Address</td>
			<td>:</td>
			<td><input type="text" name="address" id="Address" alt="Address"
				value='<?php echo (!isset($user))?"":$user->address; ?>'></td>
		</tr>
		<tr>
			<th colspan="3">&nbsp;</th>
		</tr>
		<tr>
			<th colspan="3" align="right"><input type="submit" name="submit"
				value="Save"></th>
		</tr>

	</table>
</form>
